﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Anonym.Data.Entities;

namespace Anonym.Data
{
    /// <summary>
    /// EF
    /// </summary>
    public class Log_InterfaceContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            //注入Sql链接字符串
            optionsBuilder.UseSqlServer(@"Server=1.117.110.210,1500; Database=Anonym;uid=sa;pwd=F33XlaS9;Persist Security Info=true;");
            //optionsBuilder.UseSqlServer(@"Server=.;Database=Test1;Trusted_Connection=True;");
        }
        public DbSet<Log_Interface> Log_Interface { get; set; }
        //public DbSet<L_Bank> L_Bank { get; set; }
        //public DbSet<Test> Test { get; set; }
    }
}
